$(function() {

	var id = getUrlParms("id");
	//console.log(id);

    //新闻详情
    $.ajax({
        type: 'post',
        url: 'https://wapp.mofisher.com/v2/office/detail?id=' + id,
        data: {
        },
        dataType: 'jsonp',
        jsonp: 'callback',
        success: function(result) {
            //console.log(result);
            var datas = result.datainfo;

            $('.pageTitle').text(datas.title);
            $('.pageSource').text(datas.type);
            $('.pageTime').text(datas.time);
            $('.pageContent').html(datas.content);

        },
        error: function(e) {

        }
    });

});

//获取地址栏参数
 function getUrlParms(name){
   var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
   var r = window.location.search.substr(1).match(reg);
   if(r!=null)
   return unescape(r[2]);
   return null;
   }
